package com.zhima.util;

import org.springframework.core.io.ClassPathResource;
import org.springframework.data.redis.core.script.DefaultRedisScript;

public class QuestionRedisScript {
    public static final DefaultRedisScript<String> QUERY_USER_IS_AC_QUESTION_SCRIPT;

    static {
        QUERY_USER_IS_AC_QUESTION_SCRIPT = new DefaultRedisScript<>();
        QUERY_USER_IS_AC_QUESTION_SCRIPT.setLocation(new ClassPathResource("lua/queryUserAcQuestion.lua"));
        QUERY_USER_IS_AC_QUESTION_SCRIPT.setResultType(String.class);
    }
}
